//
//  YLGoodsDetailHeaderView.m
//  YLFinanceService
//
//  Created by she1323 on 2017/9/6.
//  Copyright © 2017年 she1323. All rights reserved.
//  产品详情

#import "YLGoodsDetailHeaderView.h"
#import <UIImageView+WebCache.h>
@interface YLGoodsDetailHeaderView()
@property (nonatomic, weak) UIImageView *imageView;
@end

@implementation YLGoodsDetailHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self setUp];
    }
    return self;
}

- (void)setImageUrl:(NSString *)imageUrl
{
    _imageUrl = imageUrl;
    [_imageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@", YLImageURL, imageUrl]]];
}

- (void)setUp
{
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:self.bounds];
    [self addSubview:imageView];
    _imageView = imageView;
}

@end
